package com.niub.common.web.banner;

import org.springframework.boot.Banner;
import org.springframework.core.env.Environment;

import java.io.PrintStream;

/**
 * @author : acfan
 * date : create in 2023/7/24 10:25
 * description :
 **/

public class NiubBanner implements Banner {

    @Override
    public void printBanner(Environment environment, Class<?> sourceClass, PrintStream out) {
        out.println("\u001B[34m.  _   _ ___ _   _ ____          ____ _     ___  _   _ ____  \u001B[34m");
        out.println("\u001B[34m | \\ | |_ _| | | | __ )        / ___| |   / _ \\| | | |  _ \\ \u001B[34m");
        out.println("\u001B[34m |  \\| || || | | |  _ \\       | |   | |  | | | | | | | | | |\u001B[34m");
        out.println("\u001B[34m | |\\  || || |_| | |_) |      | |___| |__| |_| | |_| | |_| |\u001B[34m");
        out.println("\u001B[34m |_| \\_|___|\\___/|____/        \\____|_____\\___/ \\___/|____/ \u001B[34m\n\u001b[0m");
    }
}
